package com.huadao.pda.login;

import com.huadao.pda.base.BaseHttpPresenter;
import com.huadao.pda.base.BaseView;
import com.huadao.pda.data.bean.DeviceInfo;
import com.huadao.pda.data.bean.User;

public interface ILoginContract {
    interface ILoginView extends BaseView{
        void onLoginResult(String token);
        void createDeviceResult(DeviceInfo deviceInfo);
    }

    abstract class ILoginPresenter extends BaseHttpPresenter<ILoginView> {
        public abstract void login(String userName,String password);
        public abstract void createDevice(String loadingMsg);
        public abstract boolean isDeviceCreated();
        public abstract void bindPDA();
    }
}
